package org.example06.ba08;


import org.example06.ba03.Student;

// 目标类
public class SomeServiceImpl implements SomeService {
    @Override
    public void doSome(String name,Integer age) {

        //给doSome方法增加一个功能，在doSome执行前输出方法的执行时间
        System.out.println("=====目标方法doSome()=============");
    }

    @Override
    public String doOther(String name, Integer age) {
        System.out.println("=====目标方法doOther()=============");
        return "xxx";
    }

    @Override
    public Student doOther2(String name, Integer age) {
        System.out.println("=====目标方法doOther2()=============");
        Student student = new Student();
        student.setAge(age);
        student.setName(name);

        return  student;
    }

    @Override
    public String doFirst(String name, Integer age) {
        System.out.println("业务方法doFirst=================");
        return null;
    }

    @Override
    public void doSecond() {
        System.out.println("doSecond++++++++++++++++"+(10/0));
    }

    @Override
    public void doThird() {
        System.out.println("doThird");
    }


}
